-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wasi: Implements wasi_snapshot_preview1.poll_oneoff for relative clock events #629
Conversation
clockIDRealtime = iota | ||
// clockIDMonotonic is the clock ID named "monotonic" with sys.Nanotime | ||
clockIDMonotonic | ||
// clockIDProcessCputime is the unsupported clock ID named "process_cputime_id" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these values are new. mainly, changes in this file are validation only and fix to return ErrnoNotsup on unsupported
want to check how go implements sleep also.. #621 |
…k events This implements wasi_snapshot_preview1.poll_oneoff for relative clock events, and in doing so stubs `Nanosleep` which defaults to noop, but can be configured to `time.Sleep`. Signed-off-by: Adrian Cole <adrian@tetrate.io>
bfaec47
to
664c7a5
Compare
| sock_recv | ❌ | | | ||
| sock_send | ❌ | | | ||
| sock_shutdown | ❌ | | | ||
| Function | Status | Known Usage | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one day we want to have CI to verify that this is actually correct :D
|
||
For example, the below ends up calling `wasi_snapshot_preview1.poll_oneoff`: | ||
|
||
```zig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it
Thanks for the quick review turnaround @mathetake! |
Excellent, thank you! |
This implements wasi_snapshot_preview1.poll_oneoff for relative clock events,
and in doing so stubs
Nanosleep
which defaults to noop, but can be configuredto
time.Sleep
.Special thanks to @clarkmcc for the failing test here!
fixes #625